package com.lysj.order.order.exception;

import com.lysj.admin.utils.web.Resp;

/**
 * @ Author ：drj.
 * @ Date  ：Created in 14:35 2019/3/14
 * @ Description:
 **/

public class PayException extends RuntimeException {
    private String msg;
    private Integer code;

    public PayException(String msg) {
        super(msg);
        this.msg = msg;
    }

    private PayException(String msg, Integer code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public static PayException unknowError() {
        return new PayException("未知错误", Resp.Status.INNER_ERROR.getCode());
    }

    public Integer getCode() {
        return this.code;
    }

}
